I hope someone can can please write this function:
string fHeading_Get(Object in_obj)
{ // If the Object is not a "DOORS Heading" then return null.
// If the Object is displayed as a Heading in the "Main" Heading/Text column, then return a string that looks the same as that displayed heading.
// Returned string is in Rich Text format.
if (in_obj is not a Heading) then return("")
Paragraph = in_obj."Number"
Heading = in_obj."Object Heading"
TextRaw = Paragraph "\t" Heading
TextRich = apply Display settings of this level of object for Heading Font and Size(TextRaw)
apply bold to TextRich
return(TextRich)
} // end fHeading_Get()
llandale - Sat Jul 21 16:43:05 EDT 2012 |
Re: Simulate Heading Challengs.
Hi Louie,
//Recreate Main Column in Layout DXL
/*
Layout DXL to display the Object Heading and Text
in the same format as the main column.
Tony Goodman
*/
if (obj."Object Heading" "" != "")
{
font(getCanvas, level(obj), HeadingsFont)
displayRich(number(obj) " " obj."Object Heading" "")
}
if (obj."Object Text" "" != "")
{
font(getCanvas, level(obj), TextFont)
displayRich(richTextWithOle(obj."Object Text"))
}
|